package com.slixils.demo.utils;

import org.apache.commons.lang3.StringUtils;

import java.util.regex.Pattern;

/**
 * @Author: JinChongLi
 * @Description:
 * @Date: Created in 5:05 2022/4/5
 * @Modified By:
 */
public class ValidatorUtil {
    private static final Pattern mobile_patten = Pattern.compile("[1]([3-9])[0-9]{9}$");

    public static boolean isMobile(String message) {
        if (StringUtils.isEmpty(message))
            return false;
        return mobile_patten.matcher(message).matches();
    }
}
